package cnpm.service.impl;

import java.util.List;

import cnpm.dao.OfficeDAO;
import cnpm.dao.impl.OfficeDAOImpl;
import cnpm.entity.Office;
import cnpm.service.OfficeService;

public class OfficeServiceImpl implements OfficeService {

	private OfficeDAO officeDAO;
	
	public OfficeServiceImpl() {
		officeDAO = new OfficeDAOImpl();
	}
	
	@Override
	public List<Office> getAllOffice() {
		return officeDAO.getAllOffice();
	}

	@Override
	public Office getOffice(int officeID) {
		return officeDAO.getOffice(officeID);
	}

}
